<?php
class Inform extends CWidget {

	public function init() {
		
	}
	
	public function run() {
		$this->renderContent();
	}
	
	public function renderContent() {
		$criteria = new CDbCriteria;
		$criteria->limit = 5;
		$criteria->order = 'postId DESC';
		$hygg = Posts::model()->findByCategoryId(34, $criteria);
		
		$this->render('inform', array(
				'hygg' => $hygg
			)
		);
	}
}